﻿<Page x:Class="University.Workshop.Presentation.Expenses.SearchExpense"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
	Title="SearchExpense" xmlns:my="clr-namespace:University.Workshop.Presentation.ControlWPF" Loaded="Page_Loaded"
      xmlns:ViewsConverter="clr-namespace:University.Workshop.Presentation.ViewsConverter">
    <!--<Page.Resources>

        <ViewsConverter:BooleanToVisibility x:Key="boolToVis"/>
    </Page.Resources>-->
    <Grid>
        <Grid Height="563" Width="780" 
          MaxHeight="563" MaxWidth="780" 
          MinHeight="563" MinWidth="780" 
          HorizontalAlignment="Center" VerticalAlignment="Top">

            <Path Data="F1M89,500C86.791,500,85,501.791,85,504L85,504L85,538C85,540.209,86.791,542,89,542L89,542L1081,542C1083.209,542,1085,540.209,1085,538L1085,538L1085,504C1085,501.791,1083.209,500,1081,500L1081,500z" Height="50" Margin="20,0,12,459" Stretch="Fill" Stroke="#FFB6BDBA" VerticalAlignment="Bottom">
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF0F9F6" Offset="0" />
                        <GradientStop Color="sc#1, 0.8645034, 0.9386971, 0.9131128" Offset="0.036626586095394487" />
                        <GradientStop Color="sc#1, 0.849580646, 0.919979036, 0.8946999" Offset="0.046193367402403762" />
                        <GradientStop Color="sc#1, 0.8297841, 0.8951477, 0.8702733" Offset="0.052599494473647423" />
                        <GradientStop Color="sc#1, 0.8061086, 0.86545074, 0.8410604" Offset="0.057584354782454161" />
                        <GradientStop Color="sc#1, 0.7912979, 0.8468732, 0.822785735" Offset="0.059999998658895493" />
                        <GradientStop Color="#FFE6EDEA" Offset="0.059999998658895493" />
                        <GradientStop Color="#FFE6EDEA" Offset="1" />
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <TextBlock FontSize="21" FontWeight="Bold" Margin="28,62,0,464" TextWrapping="Wrap" HorizontalAlignment="Left" Width="217"><TextBlock.Effect><DropShadowEffect BlurRadius="1" Color="White" Direction="270" Opacity="0.7" ShadowDepth="1" /></TextBlock.Effect> <Run Language="es-es" Text="Buscar Egreso" /></TextBlock>
            <Button Content="Buscar" Foreground="Black" Height="34" FontWeight="Bold" Margin="638,62,22,467" Name="SearchBtn" Click="SearchBtn_Click" />

            <Button Content="Buscar" Height="23" HorizontalAlignment="Center" Margin="488,159,163,0" Name="SearchIconBtn" VerticalAlignment="Top" Width="129" Click="SearchBtn_Click" 

Style="{StaticResource ButtonSearch}"/>
            <DataGrid HeadersVisibility="None" 
                  AutoGenerateColumns="False"  
                  CanUserAddRows="False"
                  Height="298" 
                  HorizontalAlignment="Center"
                  Margin="161,187,163,0" 
                  Name="ExpenseFindedDgv"
                  VerticalAlignment="Top" 
                  Width="456" >
                <DataGrid.Columns>
                    <DataGridTemplateColumn Header="Cisterna" Width="100">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding Receipt }" Height="32" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>
                    <DataGridTemplateColumn Header="Fecha" Width="120">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding SpendDate }" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="Tipo" Width="100">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding estructura}" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="Acciones" Width="134">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <Button Height="32" Name="ShowUserBtn" ToolTip="Mostrar" Width="32" Click="ShowUserBtn_Click">
                                        <Button.Background>
                                            <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_find.ico" Stretch="Fill" TileMode="FlipXY" Viewport="0,0,32,32" ViewportUnits="Absolute" />
                                        </Button.Background>
                                    </Button>
                                    <Button Height="32" Name="ModifyUserBtn" ToolTip="Modificar" Width="32" Click="ModifyUserBtn_Click">
                                        <Button.Background>
                                            <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_edit2.ico" />
                                        </Button.Background>
                                    </Button>
                                </StackPanel>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>
                </DataGrid.Columns>
            </DataGrid>
            <Rectangle Fill="#43000000" Height="25" HorizontalAlignment="Left" Margin="160,131,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="457" />
            <TextBox Name="ReceiptTxBx" MaxLength="8" Height="23" HorizontalAlignment="Left" Margin="161,159,0,0" CommandManager.PreviewCanExecute="CantCupyPasteOrCut" PreviewTextInput="SoloNums_PreviewTextInput" PreviewKeyDown="NumsEspacioTxt_PreviewKeyDown" VerticalAlignment="Top" Width="97" />
            <Label Content="Factura/Recibo" Height="28" HorizontalAlignment="Left" Margin="169,135,0,0" Name="label2" VerticalAlignment="Top" />
            <Label Content="Fecha Egreso" Height="28" HorizontalAlignment="Left" Margin="264,135,0,0" Name="label3" VerticalAlignment="Top" />
            <Label Content="Tipo" HorizontalAlignment="Left" Margin="382,135,0,410" Name="label4" />
            <DatePicker Name="SpendDateDpck"  Height="25" HorizontalAlignment="Left" Margin="264,159,0,0" VerticalAlignment="Top" Width="112" PreviewTextInput="SpendDateDpck_PreviewTextInput_1" />
            <!--<CheckBox Name="CourtesyChk" Content="Cortesia" Height="16" HorizontalAlignment="Left" Margin="273,145,0,0" VerticalAlignment="Top" />-->
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="382,159,0,0" Name="ItemDdl" SelectedIndex="10" VerticalAlignment="Top" Width="100">
                <ComboBoxItem Content="Pago Administrativo" />
                <ComboBoxItem Content="Mano de Obra" />
                <ComboBoxItem Content="Materiales Mantenimiento" />
                <ComboBoxItem Content="Herramientas" />
                <ComboBoxItem Content="Materiales de Escritorio" />
                <ComboBoxItem Content="Viáticos y transporte" />
                <ComboBoxItem Content="Comunicación" />
                <ComboBoxItem Content="Luz" />
                <ComboBoxItem Content="Alquiler de Oficina" />
                <ComboBoxItem Content="Otros" />
                <ComboBoxItem Content="Todos" />
            </ComboBox>
        </Grid>
    </Grid>
</Page>